package com.isesol.seckill;

import com.isesol.arch.common.util.properties.*;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.context.annotation.*;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;

import java.text.*;
import java.util.*;

@Controller
@EnableAutoConfiguration
@ComponentScan(basePackages = "com.isesol")
public class Main {

    @RequestMapping("/")
    @ResponseBody
    String home() {

        return "index";
    }

    public static void main(String[] args) throws Exception {

        PropertyFileUtil.init();

        SpringApplication.run(Main.class, args);
        System.out.println(new SimpleDateFormat("[yyyy-MM-dd HH:mm:ss]").format(new Date())
                + " seckill service server started!");

    }

}